package lqb.test;

public abstract class AbstractMessageSender implements MessageSender{
    @Override
    public void sendMessage(String message) {
        Logg(message);
        doSend(message);
    }

    protected abstract void doSend(String message); //子类具体实现

    private void Logg(String message) {
        System.out.println("Logging: " + message);

    }




}
